WPO\WC\PDF_Invoices\Main D

Total Complexity 224
Dependencies 6
Dependents 0
Total lines 1,021
Lines of code 697
Logical lines of code 451
Comment lines 196
Methods 40
Properties 1

Methods 40

Method Rating Maintainability Complexity Lines of code
generate_pdf_ajax()
D
29
43 104
attach_pdf_to_email()
C
33 29 83
copy_fonts()
B
39 15 61
get_tmp_path()
A
46 12 40
init_tmp()
A
47 10 38
copy_directory()
A
49 10 29
attachments_cleanup()
A
52 10 21
log_to_order_notes()
A
57 9 14
get_documents_for_email()
A
53 8 21
page_number_replacements()
A
55 8 18
no_dir_notice()
S
52 6 25
disable_free()
S
58 6 15
tmp_folders_exist_and_writable()
S
60 6 13
get_tmp_base()
S
57 5 17
set_phpmailer_validator()
S
60 4 12
__construct()
S
50 3 27
file_is_locked()
S
62 3 12
wait_for_file_lock()
S
61 3 12
set_header_logo_height()
S
67 3 9
load_template_functions()
S
64 3 9
get_random_string()
S
68 2 8
test_mode_settings()
S
71 2 6
wc_webhook_topics()
S
67 2 7
get_wp_upload_base()
S
64 2 10
wc_webhook_topic_events()
S
68 2 7
wc_webhook_topic_hooks()
S
65 2 9
remove_order_personal_data()
S
64 2 9
generate_random_string()
S
66 2 8
log_my_account_to_order_notes()
S
79 1 3
enable_debug()
S
76 1 4
log_email_attachment_to_order_notes()
S
79 1 3
export_order_personal_data_meta()
S
68 1 7
log_single_to_order_notes()
S
79 1 3
log_bulk_to_order_notes()
S
79 1 3
remove_order_personal_data_meta()
S
65 1 9
currency_symbol_font_styles()
S
83 1 5
wrap_currency_symbol()
S
76 1 4
use_currency_font()
S
74 1 4
format_page_number_placeholders()
S
72 1 5
wc_webhook_trigger()
S
78 1 3